package com.pai4j.common.enums.community;

import lombok.Getter;

@Getter
public enum ResourceTypeEnum {

    NAV("导航"),

    RESOURCE("资源"),
    AIH5_LOVE("AI+表白H5"),

    AIGOPEN_WX_APP("AI助手微信小程序"),

    ITEM("商品"),

    INTEGRAL("积分"),

    RESUME("简历"),

    JIANLIBOT("简历BOT"),
    ITBOOK("ITBOOK"),

    USER("用户"),

    BBS("C圈"),

    CODELINK("代码链"),

    PROCESS("流程"),

    ARTICLE("一篇"),

    SUBJECT("专题"),

    BOOK("书籍"),

    KUZHAN("酷站"),

    QUESTION("问答-问题"),

    ANSWER("问答-回答"),

    COMMENT_ARTICLE("文章评论"),

    SONG("音乐"),

    MEDAL("徽章"),

    CTC_PATH("社区"),

    CTC_QUESTION("问答"),

    CTC_VIDEO("视频"),

    CTC_ANSWER("社区问答评论"),

    CTC_EXPERIENCE("经验"),

    AI_IMAGE("AI文生图"),

    LIVE_GIFT("直播礼物打赏");

    private String typeName;

    ResourceTypeEnum(String typeName) {
        this.typeName = typeName;
    }

    public String getType() {
        return this.name();
    }

    public static String getByResourceTypeName(String type) {
        return ResourceTypeEnum.valueOf(type).getTypeName();
    }
}
